package com.qiuyang.service;

import com.qiuyang.mapper.UserMapper;
import com.qiuyang.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserMapper userMapper;

    @Override
    public User checkUser(String username, String password) {
        return userMapper.checkUser(username, password);
    }

    @Override
    public User findUser(String username) {
        return userMapper.findUser(username);
    }
}
